﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HeresyManager
{
    [Serializable]
    public abstract class BackgroundPackage : IPrecondition
    {
        public abstract String Name { get; }
        public abstract int Cost { get; }


        public virtual bool IsPreconditionSattisfied(Character c)
        {
            return true;
        }

        public virtual IEnumerator<Comunication.Comunicator> Accire(Character c)
        {
            c.SpendExp += Cost;
            if (false)
                yield return null;
        }
        public virtual void DeAccire(Character c)
        {
            c.SpendExp -= Cost;
        }
    }
}
